package org.sradon.pojo.entity;

import org.sradon.mySpring.anno.di.Autowired;
import org.sradon.mySpring.anno.di.Value;
import org.sradon.mySpring.anno.ioc.Component;
import org.sradon.pojo.bean.CVN;
import org.sradon.service.GoodsService;

import javax.annotation.Resource;
import java.util.Arrays;
import java.util.List;

@Component
public class Box {
    @Autowired
    private Goods goods;

    @Resource(name = "台普斯")
    private Types types;

    @Resource
    private CVN cvn;

    @Resource
    private GoodsService service;

    @Value("1,2,3")
    private Integer[] intArray;

    @Value("AAA,BBB,CCC")
    private String[] stringArray;

    @Value("AAA")
    private String[] stringArraySingle;

    @Value("AAA,CCC")
    private List<?> tList;


    @Override
    public String toString() {
        return "Box{\n" +
                "goods=" + goods +
                "\n, types=" + types +
                "\n, cvn=" + cvn +
                "\n, intArray=" + Arrays.toString(intArray) +
                "\n, stringArray=" + Arrays.toString(stringArray) +
                "\n, stringArraySingle=" + Arrays.toString(stringArraySingle) +
                "\n, tList=" + tList +
                "\n, service=" + service + "\n" +
                '}';
    }

    public Box() {
    }

    public Goods getGoods() {
        return goods;
    }

    public void setGoods(Goods goods) {
        this.goods = goods;
    }

    public Types getTypes() {
        return types;
    }

    public void setTypes(Types types) {
        this.types = types;
    }

    public Integer[] getIntArray() {
        return intArray;
    }

    public void setIntArray(Integer[] intArray) {
        this.intArray = intArray;
    }

    public String[] getStringArray() {
        return stringArray;
    }

    public void setStringArray(String[] stringArray) {
        this.stringArray = stringArray;
    }

    public String[] getStringArraySingle() {
        return stringArraySingle;
    }

    public void setStringArraySingle(String[] stringArraySingle) {
        this.stringArraySingle = stringArraySingle;
    }

    public List<?> gettList() {
        return tList;
    }

    public void settList(List<?> tList) {
        this.tList = tList;
    }
}
